package com.spring.ssm.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author canger
 * @Deseription 测试类
 * @create 2018/8/22 16:02
 **/
@RestController
public class IndexController {

    @RequestMapping("/double")
    public String test(@RequestParam String name,@RequestParam String temp){
        doTest();
        return "Hello"+name+temp;
    }


    public void doTest(){
        int i= 5/0;
        System.out.println(i);
    }
}
